import pyglet
pyglet.options['vsync'] = False

import cocos
from cocos.director import director
from cocos.menu import *

import menu

def main():
    """Set up the window and start the menu"""
    director.init(width=800, height=600, caption="Necropoli", resizable=True)

    # set the background color to black
    pyglet.gl.glClearColor(0, 0, 0, 1)
    pyglet.gl.glDisable(pyglet.gl.GL_DEPTH_TEST)

    # start the menu
    director.run(menu.MenuScene())
